import os
f = open('/Users/jiangce/Desktop/train.txt','w')
addpath = '/home/amax/pyyolo/darknet/scripts/VOCdevkit/VOC2007/JPEGImages/'
listName = os.listdir('/Users/jiangce/Desktop/车型识别/VOCdevkit/img')
for item in listName:
    f.write(addpath + item)
    f.write('\n')
f.close()